package util;

import java.lang.reflect.Field;

import school.entity.Student;

public class STUTest {

	/**
	 * @param args
	 * @throws Exception
	 * @throws SecurityException
	 */
	public static void main(String[] args) throws SecurityException, Exception {
		Class c = Student.class;
		Field f = c.getDeclaredField("stuno");
		System.out.println(f);
		f.setAccessible(true);
		Object o = c.newInstance();
		f.set(o, 1112L);
		System.out.println(o);
	}

}
